package com.quectel.core.module.securitypatrol.dto;

import com.quectel.core.module.device.dto.DeviceDto;
import com.quectel.core.module.workorder.dto.WorkOrderDto;
import com.quectel.core.module.workorder.dto.WorkOrderLogDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2022/05/07 14:10
 */
@Data
@Schema
public class SecurityPatrolEventReportDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    @Schema(description = "tenantid")
    private Long tenantId;

    @Schema(description = "小区id")
    private Long villageId;

    @Schema(description = "巡检种类1安防巡检2质量检查3环境保洁4绿化养护")
    private Byte category;

    @Schema(description = "任务和点位关联表id")
    private Long taskRouteId;

    @Schema(description = "任务名称")
    private String taskName;

    /**
     * 检查项目
     */
    @Schema(description = "检查项目")
    private Long subjectId;

    @Schema(description = "巡检分组(字典值)")
    private Byte groupType;

    @Schema(description = "项目名称")
    private String subjectName;

    /**
     * 上报人id
     */
    @Schema(description = "上报人id")
    private Long reportUserId;

    /**
     * 上报人姓名
     */
    @Schema(description = "上报人姓名")
    private String reportUsername;

    /**
     * 抓拍图片数据
     */
    @Schema(description = "抓拍图片数据")
    private String snapshotImg;

    /**
     * 事件描述
     */
    @Schema(description = "事件描述")
    private String detail;

    /**
     * 状态0异常1正常2跳检3漏检
     */
    @Schema(description = "状态0异常1正常2跳检3漏检")
    private Byte status;

    /**
     * 是否分配工单0否1是
     */
    @Schema(description = "是否分配工单0否1是")
    private Byte assignWorkOrder;

    /**
     * 工单处理人id
     */
    @Schema(description = "工单处理人id")
    private Long assignUserId;

    /**
     * 工单处理人姓名
     */
    @Schema(description = "工单处理人姓名")
    private String assignUsername;

    /**
     * 工单id
     */
    @Schema(description = "工单id")
    private Long workOrderId;

    /**
     * 工单号
     */
    @Schema(description = "工单号")
    private String workOrderNo;

    @Schema(description = "完成时间")
    private Date completeTime;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /************非数据库字段 start ************/
    @Schema(description = "所属小区名称")
    private String villageName;

    @Schema(description = "点位名称")
    private String deviceName;

    @Schema(description = "上报人手机号")
    private String reportUserMobile;

    /**
     * 跳检原因字典值
     */
    @Schema(description = "跳检原因字典值")
    private Byte skipCheckReasonType;

    @Schema
    public WorkOrderDto workOrderDto;

    @Schema
    public List<WorkOrderLogDto> workOrderLogDtos;

    /**
     * 设备详情
     */
    @Schema(description = "设备详情")
    private DeviceDto deviceDto;

    @Schema(description = "巡检上报点位信息")
    private SecurityPatrolTaskRouteDto securityPatrolTaskRoute;
    /************非数据库字段 end **************/
}
